package com.pingan.haofang.searchcloud.web.index.vo.example;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * RPC请求示例
 *
 * @author zhangbi617
 * @date 03/05/2017
 */
@ApiModel(description = "RPC请求示例")
public class RpcExampleRequest<T> {

    @ApiModelProperty(value = "traceId，跟踪排查问题使用", example = "78aba412-10c1-47c6-88bd-06400918b685")
    private String id;

    @ApiModelProperty(value = "RPC版本，固定值2.0", example = "2.0")
    private String jsonrpc;

    @ApiModelProperty(value = "调用方法名（各接入方通过平台配置）", example = "callMethod")
    private String method;

    @ApiModelProperty(value = "调用参数示例")
    private T params;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJsonrpc() {
        return jsonrpc;
    }

    public void setJsonrpc(String jsonrpc) {
        this.jsonrpc = jsonrpc;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public T getParams() {
        return params;
    }

    public void setParams(T params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "RpcExampleRequest{" +
                "id='" + id + '\'' +
                ", jsonrpc='" + jsonrpc + '\'' +
                ", method='" + method + '\'' +
                ", params=" + params +
                '}';
    }
}
